lcCreateCommand Home

Creates a custom command object. This function can be called only within the LC_EVENT_ADDCMD event procedure.

 HANDLE lcCreateCommand (
   HANDLE hLcWnd,
   int Id,
   LPCWSTR szName
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
Id
  Command identifier. Must be unique for any command. Use offset from the constant LC_CMD_CUSTOM, in order do not collide with LiteCAD inner commands. This identifier will be used to call custom command by the lcWndExeCommand function.
szName
  Command name.

Return Value

  Handle to the created command object. If the function fails, the return value is NULL.

See Also

  Code sample